home *** CD-ROM | disk | FTP | other *** search
/ Champak 142 / Volume 142 Oct 17 2011 - Damaged.iso / Games / moko-moko.swf / scripts / frame_4 / DoAction.as < prev   
Text File  |  2011-10-17  |  3KB  |  106 lines

  1. if(true)
  2. {
  3.    if(true)
  4.    {
  5.       ┬º┬ºpush(false);
  6.    }
  7.    if(!┬º┬ºpop())
  8.    {
  9.       if(true)
  10.       {
  11.          if(true)
  12.          {
  13.             ┬º┬ºpush(false);
  14.          }
  15.          if(!┬º┬ºpop())
  16.          {
  17.             var enterpressed = false;
  18.             restbtn2._alpha = 70;
  19.             if(_global.sndval == true)
  20.             {
  21.                sndbtn2.gotoAndStop(1);
  22.             }
  23.             else
  24.             {
  25.                sndbtn2.gotoAndStop(3);
  26.             }
  27.             sndbtn2.onPress = function()
  28.             {
  29.                _global.sndval = !_global.sndval;
  30.                if(_global.sndval == true)
  31.                {
  32.                   sndbtn2.gotoAndStop(2);
  33.                   music.start(0,2000);
  34.                }
  35.                if(_global.sndval == false)
  36.                {
  37.                   sndbtn2.gotoAndStop(4);
  38.                   music.stop();
  39.                }
  40.             };
  41.             sndbtn2.onRollOver = function()
  42.             {
  43.                if(_global.sndval == false)
  44.                {
  45.                   sndbtn2.gotoAndStop(4);
  46.                }
  47.                if(_global.sndval == true)
  48.                {
  49.                   sndbtn2.gotoAndStop(2);
  50.                }
  51.             };
  52.             sndbtn2.onRollOut = function()
  53.             {
  54.                if(_global.sndval == false)
  55.                {
  56.                   sndbtn2.gotoAndStop(3);
  57.                }
  58.                if(_global.sndval == true)
  59.                {
  60.                   sndbtn2.gotoAndStop(1);
  61.                }
  62.             };
  63.             onEnterFrame = function()
  64.             {
  65.                if(this.inst1._currentframe == 35 or this.inst1._currentframe == 55)
  66.                {
  67.                   if(_global.sndval == true)
  68.                   {
  69.                      this.snd.gotoAndPlay("square");
  70.                   }
  71.                }
  72.                if(this.inst1._currentframe == this.inst1._totalframes)
  73.                {
  74.                   this.inst1.enter1.onPress = function()
  75.                   {
  76.                      music.stop();
  77.                      if(_global.sndval == true and enterpressed == false)
  78.                      {
  79.                         snd.gotoAndPlay("enter");
  80.                      }
  81.                      enterpressed = true;
  82.                      onEnterFrame = null;
  83.                      _global.players = 1;
  84.                      _root.gotoAndStop("moko");
  85.                   };
  86.                   if(Key.isDown(13))
  87.                   {
  88.                      music.stop();
  89.                      if(_global.sndval == true and enterpressed == false)
  90.                      {
  91.                         snd.gotoAndPlay("enter");
  92.                      }
  93.                      enterpressed = true;
  94.                      onEnterFrame = null;
  95.                      _global.players = 1;
  96.                      _root.gotoAndStop("moko");
  97.                   }
  98.                }
  99.             };
  100.          }
  101.       }
  102.       ┬º┬ºgoto(addr277);
  103.    }
  104. }
  105. addr277:
  106.